﻿// Decompiled with JetBrains decompiler
// Type: UnityEngine.PropertyNameUtils
// Assembly: UnityEngine.CoreModule, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
// MVID: E6AE6B5A-2752-4B07-9528-C8B77C62CE79
// Assembly location: C:\Users\windys\Unity\2021.3.39f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.CoreModule.dll
// XML documentation location: C:\Users\windys\Unity\2021.3.39f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.CoreModule.xml

using System.Runtime.CompilerServices;
using UnityEngine.Bindings;

#nullable disable
namespace UnityEngine
{
  [NativeHeader("Runtime/Utilities/PropertyName.h")]
  internal class PropertyNameUtils
  {
    [FreeFunction(IsThreadSafe = true)]
    public static PropertyName PropertyNameFromString([Unmarshalled] string name)
    {
      PropertyName ret;
      PropertyNameUtils.PropertyNameFromString_Injected(name, out ret);
      return ret;
    }

    [FreeFunction(IsThreadSafe = true)]
    public static string StringFromPropertyName(PropertyName propertyName)
    {
      return PropertyNameUtils.StringFromPropertyName_Injected(ref propertyName);
    }

    [FreeFunction(IsThreadSafe = true)]
    [MethodImpl(MethodImplOptions.InternalCall)]
    public static extern int ConflictCountForID(int id);

    [MethodImpl(MethodImplOptions.InternalCall)]
    private static extern void PropertyNameFromString_Injected(string name, out PropertyName ret);

    [MethodImpl(MethodImplOptions.InternalCall)]
    private static extern string StringFromPropertyName_Injected(ref PropertyName propertyName);
  }
}
